# Copyright 2009 http://www.yuntien.com
# Licensed under the Apache License, Version 2.0

from google.appengine.ext import webapp

register = webapp.template.create_template_register()

def encode(str, encoding='utf-8'):
  return str.encode(encoding)

register.filter(encode)

